package com.papers.juan.mapper;

import com.papers.juan.domain.TJuanQuestionRepos;
import com.papers.juan.domain.TJuanReposRelated;
import com.papers.juan.domain.vo.QuestionChartVo;
import com.papers.juan.domain.vo.ReposChartChildren;
import com.papers.juan.domain.vo.TJuanQuestionReposVo;
import com.papers.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 题库Mapper接口
 *
 * @author papers
 * @date 2022-10-08
 */
public interface TJuanQuestionReposMapper extends BaseMapperPlus<TJuanQuestionReposMapper, TJuanQuestionRepos, TJuanQuestionReposVo> {

    /**
     * 查询题库的题目
     * @param reposId
     * @return
     */
    List<QuestionChartVo> getQuestionChart(@Param("reposId") String reposId);

    List<ReposChartChildren> getChildrenByDict(@Param("dictType")String dictType);

    /**
     * 查询对应题库的题目关系
     */
    List<TJuanReposRelated> selectByReposId(@Param("ids")List<String> idList);
}
